<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		 <div id="app">
			 展现数据：{{num}}
			 <button v-on:click="num++">自增</button>
			 <button @click="deNum">自减函数</button>
		 </div>
		
		 <script src="../js/vue.js"></script>
		 
		 <script>
			 var app = new Vue({
				 el:"#app",
				 data:{
					 num:100
					 
				 },
				 methods:{
					 deNum: function(){
						 this.num--
					 }
				 }
			 })
		 </script>
	</body>
</html>